import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("sys_dict_type", { schema: "lvlu" })
export class SysDictType {
  @PrimaryGeneratedColumn({ type: "int", name: "id" })
  id: number;

  @Column("varchar", {
    name: "name",
    nullable: true,
    comment: "名称",
    length: 50,
  })
  name: string | null;

  @Column("varchar", {
    name: "dict_type",
    nullable: true,
    comment: "字典类型标识",
    length: 50,
  })
  dictType: string | null;

  @Column("char", {
    name: "status",
    nullable: true,
    comment: "状态 0：禁用 1：启用",
    length: 1,
  })
  status: string | null;

  @Column("varchar", {
    name: "create_user",
    nullable: true,
    comment: "创建人",
    length: 50,
  })
  createUser: string | null;

  @Column("datetime", {
    name: "create_time",
    nullable: true,
    comment: "创建时间",
  })
  createTime: Date | null;

  @Column("varchar", {
    name: "update_user",
    nullable: true,
    comment: "更新人",
    length: 50,
  })
  updateUser: string | null;

  @Column("datetime", {
    name: "update_time",
    nullable: true,
    comment: "更新时间",
  })
  updateTime: Date | null;
}
